<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
	<link href="js/ie_style.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="js/ie_png.js"></script>
   <script type="text/javascript">
       ie_png.fix('.png, .button');
   </script>
<![endif]-->
</head>

<body id="page1">
  <!-- header -->

  <div id="header">
    <div class="container">
    	<!-- .logo -->
    	<div class="logo">
      	<a href="index.html"><img src="images/logo.gif" alt="" /></a>
      </div>
    	<!-- /.logo -->
      <!-- .slogan -->
      <div class="slogan">
      	<h1>Affaire Sans Risque</h1>
        <h2>lorem enim ad minim veniam, quis nostrud exerci...</h2>
      </div>
      <!-- /.slogan -->
      <!-- .nav -->
      <?php

    require_once("menu.php");
    $menu = affiche_menu();
                 echo $menu;
		?>
      <!-- /.nav -->
    </div>
</div>
  <!-- content -->
  <div id="content">
  	<div class="container">
  	  <div class="inside">
  	    <div class="wrapper">
  	      <div class="aside">
  	      	<h2><span><img src="images/icon1.gif" alt="" />Category</span></h2>
            <!-- .block -->
            <div class="block">
            	<ins class="lbc"></ins>
              <ins class="rbc"></ins>
            	<ul class="list1">
              	<li><a href="#">Consulter les annonces</a></li>
                <li><a href="#">Diffuser une annonce</a></li> 
                <li><a href="#">Offres</a></li> 
                <li><a href="#">Demande</a></li> 
                <li><a href="#">Compte pro</a></li>
                <li><a href="#">Mes annonces </a></li>
                <li><a href="#">Inscription</a></li> 
                <li><a href="#">Membres</a></li>
                <li><a href="#">Aides</a></li>
               
              </ul>
            </div>
            <!-- /.block -->
  	      </div>
  	      <div class="mainContent">
			<?php 
			$page_inc = './Afficher_Annonces.php';
			if (isset($_GET['page_id'])) {
    switch ($_GET['page_id']) {
        case 'Ajouter_user':
            $page_inc ='./Ajouter_user.php';
            break;
        case 'Connexion':
            $page_inc = './login.php';
            break;
        case 'Deconnexion':
            $page_inc = './Afficher_Annonces.php';
            session_unset($_SESSION['user']);
            $_SESSION['etat'] ='Connexion';
            $creer_compt=$balise_compt;
            break;
        case 'Afficher_Annonces':
            if(isset($_SESSION['user']))
                $etat='Deconnecter';
            $page_inc = './Afficher_Annonces.php';
            break;
        case 'ajout_Annonce':
                if(!isset($_SESSION['user']))
                     $page_inc = './formulaire_ajoutAnnonce.php';
                else $page_inc='./formulaire_ajoutAnnonce_conecter.php';
                break;
        default:
            $page_inc = './Afficher_Annonces.php';

    }
}
?>

<?php include $page_inc; ?>



          </div>
  	    </div>
  	  </div>
  	</div>
</div>
  <!-- footer -->
  <div id="footer">
  	<div class="container">
    	<div class="inside">
      	<div class="wrapper">
        	<dl class="contact">
          	<dt>The Company Name Inc. 8901 Marmora Road, Glasgow, D04 89GR.</dt>
            <dd>Telephone: +1 959 552 5963</dd>
            <dd>FAX: +1 959 552 5964</dd>
            <dd>E-mail:  <a href="#">mail@demolink.org</a></dd>
          </dl>
          <!-- .footer-box -->
          <div class="footer-box">
          	<div class="indent">
         <div class="vlinks"><a href="http://www.webdesign.org">Web design</a> by <a title="Free Templates Online" href="http://www.freetemplatesonline.com">Free Templates</a> Online</div>

          	</div>
          </div>
          <!-- /.footer-box -->
        </div>
      </div>
    </div>
  </div>
</body>
</html>